package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/10/10.
 * Des:
 */
@Entity
@Table(name = "sys_feedback_t", schema = "jshoperxms", catalog = "")
public class SysFeedbackT {
    private String id;
    private String content;
    private String status;
    private String devicetype;
    private String storeid;
    private long createtime;
    private long updatetime;
    private int versiont;
    private String memberid;
    private String feedbacksource;
    private String feedbackpurpose;
    private String storename;
    private String project;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "CONTENT", nullable = false, length = 500)
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Basic
    @Column(name = "STATUS", nullable = false, length = 1)
    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Basic
    @Column(name = "DEVICETYPE", nullable = false, length = 1)
    public String getDevicetype() {
        return devicetype;
    }

    public void setDevicetype(String devicetype) {
        this.devicetype = devicetype;
    }

    @Basic
    @Column(name = "STOREID", nullable = false, length = 25)
    public String getStoreid() {
        return storeid;
    }

    public void setStoreid(String storeid) {
        this.storeid = storeid;
    }

    @Basic
    @Column(name = "CREATETIME", nullable = false)
    public long getCreatetime() {
        return createtime;
    }

    public void setCreatetime(long createtime) {
        this.createtime = createtime;
    }

    @Basic
    @Column(name = "UPDATETIME", nullable = false)
    public long getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(long updatetime) {
        this.updatetime = updatetime;
    }

    @Basic
    @Column(name = "VERSIONT", nullable = false)
    public int getVersiont() {
        return versiont;
    }

    public void setVersiont(int versiont) {
        this.versiont = versiont;
    }

    @Basic
    @Column(name = "MEMBERID", nullable = false, length = 25)
    public String getMemberid() {
        return memberid;
    }

    public void setMemberid(String memberid) {
        this.memberid = memberid;
    }

    @Basic
    @Column(name = "FEEDBACKSOURCE", nullable = false, length = 1)
    public String getFeedbacksource() {
        return feedbacksource;
    }

    public void setFeedbacksource(String feedbacksource) {
        this.feedbacksource = feedbacksource;
    }

    @Basic
    @Column(name = "FEEDBACKPURPOSE", nullable = false, length = 1)
    public String getFeedbackpurpose() {
        return feedbackpurpose;
    }

    public void setFeedbackpurpose(String feedbackpurpose) {
        this.feedbackpurpose = feedbackpurpose;
    }

    @Basic
    @Column(name = "STORENAME", nullable = false, length = 45)
    public String getStorename() {
        return storename;
    }

    public void setStorename(String storename) {
        this.storename = storename;
    }

    @Basic
    @Column(name = "PROJECT", nullable = false, length = 45)
    public String getProject() {
        return project;
    }

    public void setProject(String project) {
        this.project = project;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SysFeedbackT that = (SysFeedbackT) o;

        if (createtime != that.createtime) return false;
        if (updatetime != that.updatetime) return false;
        if (versiont != that.versiont) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (content != null ? !content.equals(that.content) : that.content != null) return false;
        if (status != null ? !status.equals(that.status) : that.status != null) return false;
        if (devicetype != null ? !devicetype.equals(that.devicetype) : that.devicetype != null) return false;
        if (storeid != null ? !storeid.equals(that.storeid) : that.storeid != null) return false;
        if (memberid != null ? !memberid.equals(that.memberid) : that.memberid != null) return false;
        if (feedbacksource != null ? !feedbacksource.equals(that.feedbacksource) : that.feedbacksource != null)
            return false;
        if (feedbackpurpose != null ? !feedbackpurpose.equals(that.feedbackpurpose) : that.feedbackpurpose != null)
            return false;
        if (storename != null ? !storename.equals(that.storename) : that.storename != null) return false;
        if (project != null ? !project.equals(that.project) : that.project != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (content != null ? content.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (devicetype != null ? devicetype.hashCode() : 0);
        result = 31 * result + (storeid != null ? storeid.hashCode() : 0);
        result = 31 * result + (int) (createtime ^ (createtime >>> 32));
        result = 31 * result + (int) (updatetime ^ (updatetime >>> 32));
        result = 31 * result + versiont;
        result = 31 * result + (memberid != null ? memberid.hashCode() : 0);
        result = 31 * result + (feedbacksource != null ? feedbacksource.hashCode() : 0);
        result = 31 * result + (feedbackpurpose != null ? feedbackpurpose.hashCode() : 0);
        result = 31 * result + (storename != null ? storename.hashCode() : 0);
        result = 31 * result + (project != null ? project.hashCode() : 0);
        return result;
    }
}
